package com.zhny.aiot.led.four.screen.plugin.model;

import com.zhny.aiot.led.four.screen.plugin.ILedEncode;
import lombok.Data;

import java.util.List;

/*
*
* {"fontSize":12,"fontColor":1,"codeFormat":0,"currentPage":1,"ledContentList":[{"content":"Google"},{"content":"Baidu"},{"content":"SoSo"}]}
*
* */

@Data
public class LedModifyParam implements ILedEncode {

    private int fontColor;
    private int codeFormat;

    private List<LedContent> contentList;
//    private LedConfig config;

    @Override
    public String toString(){
        StringBuilder builder = new StringBuilder();
        builder.append("fontColor:").append(fontColor);

        contentList.forEach(content->{
            builder.append("content:").append(content.toString());
        });
        return builder.toString();
    }

    public int getTotalPage(){return contentList.size();}
}
